import service from '@/utils/request'

// @Tags MovieAuto
// @Summary 创建tMovies表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MovieAuto true "创建tMovies表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /movie/createMovieAuto [post]
export const createMovieAuto = (data) => {
  return service({
    url: '/movie/createMovieAuto',
    method: 'post',
    data
  })
}

// @Tags MovieAuto
// @Summary 删除tMovies表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MovieAuto true "删除tMovies表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /movie/deleteMovieAuto [delete]
export const deleteMovieAuto = (data) => {
  return service({
    url: '/movie/deleteMovieAuto',
    method: 'delete',
    data
  })
}

// @Tags MovieAuto
// @Summary 批量删除tMovies表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除tMovies表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /movie/deleteMovieAuto [delete]
export const deleteMovieAutoByIds = (data) => {
  return service({
    url: '/movie/deleteMovieAutoByIds',
    method: 'delete',
    data
  })
}

// @Tags MovieAuto
// @Summary 更新tMovies表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.MovieAuto true "更新tMovies表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /movie/updateMovieAuto [put]
export const updateMovieAuto = (data) => {
  return service({
    url: '/movie/updateMovieAuto',
    method: 'put',
    data
  })
}

// @Tags MovieAuto
// @Summary 用id查询tMovies表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.MovieAuto true "用id查询tMovies表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /movie/findMovieAuto [get]
export const findMovieAuto = (params) => {
  return service({
    url: '/movie/findMovieAuto',
    method: 'get',
    params
  })
}

// @Tags MovieAuto
// @Summary 分页获取tMovies表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取tMovies表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /movie/getMovieAutoList [get]
export const getMovieAutoList = (params) => {
  return service({
    url: '/movie/getMovieAutoList',
    method: 'get',
    params
  })
}

